
#import dbengine

class Task:
  def __init__(self,conn,id_owner,id_worker,title):
    data=(id_owner,id_worker,title,now,now,'','N')
    conn.execute("insert into tasks(id_owner,id_worker,title,date_new,date_mod,date_end,stat_work) values (?,?,?,?,?,?,?)",data)
    conn.commit()
    return
    
  def delete(self,conn,id):
    conn.execute("delete from tasks where id=?)",id)
    conn.commit()
    return
    
  def change():
#FIX
    return
    
  def send():
#FIX  
    return